package com.example.adminbase.util;

import com.example.adminbase.domain.BusinessException;

public class Assert {
    public static void notNull(Object o, String displayMessage) {
        if(o == null) {
            throw new BusinessException(new IllegalArgumentException(), displayMessage);
        }
    }
}
